package org.springframework.springcloud.test.springcloudservicefeign.spring.cloud.service.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.springcloud.test.springcloudservicefeign.spring.cloud.service.infacle.SchedualServiceHi;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HiController {
    @Autowired
    private SchedualServiceHi schedualServiceHi;
    @RequestMapping(value = "/find")
    public String sayHi(@RequestParam String name){
        return "feign : " + schedualServiceHi.sayHiFromClientOne(name);
    }
}
